package com.study.modules.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.modules.sys.model.entity.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Mr.Du
 * @Date 2021/10/16 8:56
 */
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    List<Long> selectRoleIdListByUserId(@Param("userId") Long userId);

    List<Long> selectUserIdListByRoleId(@Param("roleId") Long roleId);

}
